package com.wing.sell.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.common.utils.JsonResult;
import com.wing.sell.model.entity.CustomerDueSubjectCompany;
import com.wing.sell.model.request.CustomerDueSubjectCompanyForm;
import com.wing.sell.model.response.CustomerDueSubjectCompanyVO;

import java.util.List;
import java.util.Map;

/**
 * 客户尽调科目公司-Service
 *
 * @author
 */
public interface CustomerDueSubjectCompanyService extends IService<CustomerDueSubjectCompany> {

    /**
     * 添加
     *
     * @param customerDueSubjectCompanyForm
     * @return
     */
    int add(CustomerDueSubjectCompanyForm customerDueSubjectCompanyForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<CustomerDueSubjectCompanyVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<CustomerDueSubjectCompanyVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    CustomerDueSubjectCompanyVO get4appById(Long id);

    /**
     * 获取岗位角色数据
     * @param subjectId
     * @return
     */
    JsonResult getRoleData(Long subjectId);
}
